Initializes a new instance of the OrderedDictionary<TKey,TValue> class using the specified initial capacity and comparer.
シンタックス
'宣言
Public Function New( _
ByVal As System.Integer, _
Optional ByVal As System.Collections.Generic.IEqualityComparer(Of TKey) _
)
'使用法
Dim capacity As System.Integer
Dim comparer As System.Collections.Generic.IEqualityComparer(Of TKey)
Dim instance As New OrderedDictionary(Of TKey,TValue)(capacity, comparer)
public OrderedDictionary<TKey,TValue>(
System.int ,
System.Collections.Generic.IEqualityComparer<TKey>
)
パラメータ
- capacity
- The initial number of elements that the OrderedDictionary<TKey,TValue> collection can contain.
- comparer
- The System.Collections.Generic.IEqualityComparer`1 to use when comparing keys, or to use the default System.Collections.Generic.EqualityComparer`1 for the type of the key.
例外
| 例外 | 解説 |
| System.ArgumentOutOfRangeException | is less than 0. |
参照